package com.ps.property;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(description = "收藏信息")
@Data
@NoArgsConstructor
public class TOtherCollect {
  @ApiModelProperty(value = "收藏ID",required = true)

  private int collectId;

  @ApiModelProperty(value = "用户ID",required = true)
  @NotNull(message = "用户ID不能为空")
  private int userId;

  @ApiModelProperty(value = "关联编号",required = true)
  @NotBlank(message = "关联编号不能为空")
  private String relevanceNumber;

  @ApiModelProperty(value = "收藏类型(1.提问 2.文章)",required = true)
  @NotNull(message = "类型不能为空")
  private int type;

  @ApiModelProperty(value = "收藏状态(1.未删除 2.已删除)",required = true)
  @NotNull(message = "状态不能为空")
  private int status;
}
